package com.hotel.project.usercenter.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hotel.project.usercenter.domain.Cash;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author William
 * @create 2022-04-14 10:00
 */
public interface CashDao extends BaseMapper<Cash> {

    @Select("select * from cash where user_id = #{userId}")
    List<Cash> findByUserId(Long userId);
}
